﻿
package system.base;

import framework.core.*;

/*
	Author    :Benny
	CreateTime:2008-05-19 11:26:57
*/
public class BusMaterialAccountKilSearchEvent extends SearchEvent
{

	private String m_id = "" ; // all

	private String m_warehouse_code = "" ; // all

	private String m_bus_type_code = "" ; // all

	private String m_bus_category_code = "" ; // all

	private String m_bus_tag = "" ; // all

	private String m_repairen_time = "" ; // all

	private double m_kil_repaired_money = Value.NULL_DOUBLE ; // all
		

public BusMaterialAccountKilSearchEvent() 
{
	super();
	
	setOrderField(BusMaterialAccountKil.ID);
		
}



	public String getId()
	{
		return m_id ;
	}
	public void setId(String v)
	{
		m_id = v;
	}

	public String getWarehouseCode()
	{
		return m_warehouse_code ;
	}
	public void setWarehouseCode(String v)
	{
		m_warehouse_code = v;
	}

	public String getBusTypeCode()
	{
		return m_bus_type_code ;
	}
	public void setBusTypeCode(String v)
	{
		m_bus_type_code = v;
	}

	public String getBusCategoryCode()
	{
		return m_bus_category_code ;
	}
	public void setBusCategoryCode(String v)
	{
		m_bus_category_code = v;
	}

	public String getBusTag()
	{
		return m_bus_tag ;
	}
	public void setBusTag(String v)
	{
		m_bus_tag = v;
	}

	public String getRepairenTime()
	{
		return m_repairen_time ;
	}
	public void setRepairenTime(String v)
	{
		m_repairen_time = v;
	}

	public double getKilRepairedMoney()
	{
		return m_kil_repaired_money ;
	}
	public void setKilRepairedMoney(double v)
	{
		m_kil_repaired_money = v;
	}
		



	public String viewId() throws Exception
	{
		return Value.view(getId());
	}

	public String viewWarehouseCode() throws Exception
	{
		return Value.view(getWarehouseCode());
	}

	public String viewBusTypeCode() throws Exception
	{
		return Value.view(getBusTypeCode());
	}

	public String viewBusCategoryCode() throws Exception
	{
		return Value.view(getBusCategoryCode());
	}

	public String viewBusTag() throws Exception
	{
		return Value.view(getBusTag());
	}

	public String viewRepairenTime() throws Exception
	{
		return Value.view(getRepairenTime());
	}

	public String viewKilRepairedMoney() throws Exception
	{
		return Value.view(getKilRepairedMoney());
	}


	public Conditions toConditions() throws Exception
	{
		Conditions c = super.toConditions();

	c.add(getCondition(BusMaterialAccountKil.ID,getId()));

	c.add(getCondition(BusMaterialAccountKil.WAREHOUSE_CODE,getWarehouseCode()));

	c.add(getCondition(BusMaterialAccountKil.BUS_TYPE_CODE,getBusTypeCode()));

	c.add(getCondition(BusMaterialAccountKil.BUS_CATEGORY_CODE,getBusCategoryCode()));

	c.add(getCondition(BusMaterialAccountKil.BUS_TAG,getBusTag()));

	c.add(getCondition(BusMaterialAccountKil.REPAIREN_TIME,getRepairenTime()));

	c.add(getCondition(BusMaterialAccountKil.KIL_REPAIRED_MONEY,getKilRepairedMoney()));
		

			
		return c ;
	}
	
//add by Benny start

//add by Benny end
}
